<?php 

namespace app\common\model;
use think\Model;

class InstallDevices extends Model
{
	protected $autoWriteTimestamp = true;

	public function cars(){
		return $this->hasOne('Cars','car_id','car_id');
	}

	public function terminal(){
		return $this->hasOne('Terminal','id','tid');
	}

	public function installUser(){
		return $this->hasOne('InstallUser','id','user_id');
	}
}